const MyPromise = require("../template.js")
/** 四. 异步 resolve 测试 */
function testAsyncResolve() {
  const promise = new MyPromise((resolve) => {
    setTimeout(() => resolve("Async"), 800)
  })

  promise.then((value) => {
    console.log("4. Async value:", value === "Async") // 应打印 true
  })
  console.log(1)
}

testAsyncResolve()
